package com.book.book.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.book.book.dao.QueueDao;
import com.book.book.domain.QueueDO;
import com.book.book.service.QueueService;



@Service
public class QueueServiceImpl implements QueueService {
	@Autowired
	private QueueDao queueDao;
	
	@Override
	public QueueDO get(Integer id){
		return queueDao.get(id);
	}
	
	@Override
	public List<QueueDO> list(Map<String, Object> map){
		return queueDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return queueDao.count(map);
	}
	
	@Override
	public int save(QueueDO queue){
		return queueDao.save(queue);
	}
	
	@Override
	public int update(QueueDO queue){
		return queueDao.update(queue);
	}
	
	@Override
	public int remove(Integer id){
		return queueDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return queueDao.batchRemove(ids);
	}

	@Override
	public List<QueueDO> getQueueItem(String userId,String bookName) {
		String a="\'\"" +userId+ "\"\'";
		return queueDao.getQueueItem(a,bookName);
	}

}
